<?php
$this->breadcrumbs=array(
	'Usuários'=>array('index'),
);

   $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
                                   array('label'=>'Perfil dos Membros','visible'=>!Yii::app()->user->isGuest, 'linkOptions' => array( 'class' => 'menulink' ),
                                         'items'=>$menu_users,
                                   ),
                                   array('label'=>'Conheça os Membros(Fotos)','url'=>array('site/page&view=about'),'visible'=>!Yii::app()->user->isGuest, 'linkOptions' => array( 'class' => 'menulink' )),
                                   
 		),
   ));

   $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'tbl-user-grid',
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		'id',
		'username',
		'profile',
            	 array(
                    'name'=>'img',
                    'type'=>'image',
                    'value'=> 'Yii::app()->baseUrl. "/images/".$data->img',  
                ),
                array(
                       'name'=>'party',
                       'type'=>'raw',
                       'value'=>'CHtml::encode(Lookup::item("Party",$data->party))'
                    ),
                array(
                       'name'=>'classe',
                       'type'=>'raw',
                       'value'=>'CHtml::encode(Lookup::item("Classe",$data->classe))'
                    ),
		array(
			'class'=>'CButtonColumn',
                        'template' => '{view}',
                        'viewButtonUrl'=>'Yii::app()->createUrl("user/profile", array("id" =>$data->id))',
		),
	),
)); ?>